/*
 * Copyright (c) 2013-2013 XXXX XXXXXX, Inc.
 * XXXX Road, XXXX, XXXX State, XXXX Post code, XXXX Country.
 * All rights reserved.
 *
 * This software is the confidential and proprietary information of XXXX
 * XXXXXX, Inc. ("Confidential Information").  You shall not
 * disclose such Confidential Information and shall use it only in
 * accordance with the terms of the license agreement you entered into
 * with XXXX.
 * 
 * History
 * Date        Ver Author        Change Description
 * ----------- --- ------------- ----------------------------------------
 * 22 May 2013 001 Karl          Create
 */
package test.com.sms.selenium.sc.util;

import org.openqa.selenium.By;

import test.com.sms.selenium.framework.SeleniumPageUtil;
import test.com.sms.selenium.util.SeleniumUtil;

public class ScTicketInformationPageUtil extends SeleniumPageUtil {
	
	public final static By TICKET_TD_RECEIVED_VIA = By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[1]/td[1]");
	public final static By TICKET_TD_STATUS= By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[2]/td[1]");
	public final static By TICKET_SELECT_STATUS = By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[2]/td[2]/select");
	public final static By TICKET_TD_SEVERITY = By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[3]/td[1]");
	public final static By TICKET_SELECT_SEVERITY = By.id("severity_id");
	public final static By TICKET_TD_CALL_TYPE = By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[4]/td[1]");
	public final static By TICKET_SELECT_CALL_TYPE = By.id("call_id");
	public final static By TICKET_TD_ORDER_TYPE = By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[5]/td[1]");
	public final static By TICKET_SELECT_ORDER_TYPE = By.id("SVC_order_type_id");
	public final static By TICKET_TD_SERVICE_TYPE = By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[7]/td[1]");
	public final static By TICKET_SELECT_SERVICE_TYPE = By.id("Svc_type_id");
	public final static By TICKET_TD_PROBLEM= By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[8]/td[1]");
	public final static By TICKET_LINK_PROBLEM_MORE = By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[8]/td[2]/div/a");
	public final static By TICKET_TD_ERROR_CODE = By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[10]/td[1]");
	public final static By TICKET_INPUT_ERROR_CODE = By.id("error_code");
	public final static By TICKET_TD_FAULT_AREA = By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[11]/td[1]");
	public final static By TICKET_SELECT_FAULT_AREA = By.id("fault_code");
	public final static By TICKET_TD_SYMPTOM = By.xpath("html/body/table/tbody/tr[3]/td[4]/table/tbody/tr[12]/td[1]");
	public final static By TICKET_SELECT_SYMPTOM = By.id("symptom");
	
	public static void waitForPageToLoad(){
		SeleniumUtil.waitOnElements(new By[]{
				TICKET_SELECT_STATUS, TICKET_SELECT_SEVERITY, TICKET_SELECT_CALL_TYPE, TICKET_SELECT_ORDER_TYPE
		});
	}
}
